{config_load file="layout_overlib.conf"}
<table id="main_table" cellspacing='0' >
<tr class="menu_header">
	<th>#</th>
	<th>
			<img src="./images/buttons/rank.png" alt="" width="17" height="17" />
	</th>
	<th>

	</th>
	<th>
			Class
	</th>
	<th class="left">
			Name
	</th>
	<th>
			{$category_info.category_short_name}
	</th>
	<th>
		&nbsp;
	</th>
</tr>

{foreach name=balance item=character from=$characters}
<tr class="{if $character.user_id eq $user_id}row_3{else}{cycle values="row_1,row_2"}{/if}">
	<td>{$smarty.foreach.balance.iteration}</td>
	<td><img src=".{$character.team_image}" alt="" width="15" height="15" /></td>

	<td>
	{if $raid_info.leader_player_id eq $character.player_id}
		<img src="./images/buttons/leader_alliance.png" alt="" width="20" height="20" {popup text="This player is the leader for this raid." center=#overlib_center# wrap=#overlib_wrap# offsety=#overlib_offsety# fgcolor=#overlib_fgcolor# bgcolor=#overlib_bgcolor#  textcolor=#overlib_textcolor#} />
	{/if}
	</td>
	<td><img src="./images/classes/{$character.class_picture}" alt="" width="20" height="20" />
	</td>
	<td class="left">{$character.name}</td>
	<td>{$character.rp_balance}</td>
	<td>
	<img src="./images/buttons/search.gif" alt="" width="14" height="14" {popup text="Show details for this character" center=#overlib_center# wrap=#overlib_wrap# offsety=#overlib_offsety# fgcolor=#overlib_fgcolor# bgcolor=#overlib_bgcolor#  textcolor=#overlib_textcolor#} />
	</td>
</tr>

{foreachelse}
<tr class="{cycle values="row_1,row_2"}">
	<td colspan=12>No rp has been distributed for this raid yet!</td>
</tr>

{/foreach}

<tr class="menu_footer">
	<td colspan=12></td>
</tr>

</table>
